package com.demo.resourcecode.annotationutil.aliasFor2;

import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Inherited;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

import org.springframework.context.annotation.Scope;
import org.springframework.core.annotation.AliasFor;

import com.demo.resourcecode.annotationutil.aliasFor1.MyAnnotation;

@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.TYPE)
@Documented
@Inherited
@Scope("single")
@MyAnnotation
public @interface SubMyAnnotation {

	@AliasFor(annotation=MyAnnotation.class)   //缺省指明继承的父注解的中的属性名称，则默认继承父注解中同名的属性名
	String value() default "";

    @AliasFor(value="location", annotation=MyAnnotation.class)
    String subLocation() default "";

}